package com.smh.genericity.tongPeiFu;

/**
 * @description: 定义Shape的子类Rectangle
 * @author: shenmhk
 * @create: 2020-10-21 14:16
 */
public class Rectangle extends Shape {
    //实现画图方法，以打印字符串来模拟画图方法实现
    public void draw(Canvas c) {
        System.out.println("把一个矩形画在画布" + c + "上");
    }
}
